import request from '@/utils/request'

export function listTenancy(query) {
  return request({
    url: '/operate/tenant/list',
    method: 'get',
    params: query
  })
}

export function createTenancy(data) {
  return request({
    url: '/operate/tenant/create',
    method: 'post',
    data
  })
}

export function updateTenancy(data) {
  return request({
    url: '/operate/tenant/update',
    method: 'post',
    data
  })
}

export function readTenancy(data) {
  return request({
    url: '/operate/read',
    method: 'get',
    data
  })
}

// export function deleteAd(data) {
//   return request({
//     url: '/ad/delete',
//     method: 'post',
//     data
//   })
// }
